<?php
class ConnectionProperties{

	private $host = "";
	private $port = "";
	private static $FILE_NAME = "../../resources/data/ftpparams.txt";

	function __construct(){

		if(file_exists(self::$FILE_NAME)){
			$fp = fopen(self::$FILE_NAME, "r" );
			$this -> host = trim(fgets($fp));
			$this -> port = trim(fgets($fp));
			fclose($fp);
		}
		else{
			$this -> host = "localhost";
			$this -> port = "21";			
		}
	}

	public function getHost(){
		return $this -> host;
	}
	
	public function getPort(){
		return $this -> port;
	}
}
?>